package com.hdax.gulimall.product;


import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;


/**
 * 整合mybatis
 */


/**
 * 逻辑删除
 * 1、配置全局的逻辑删除的规则
 *            #逻辑删除的字段，逻辑未删除值
 *       logic-delete-value: 1
 *       #0代表没删除，逻辑已经删除值
 *       logic-not-delete-value: 0
 *  2、逻辑删除的组件：包版本可以不用配置
 *  3、给Bean加上逻辑删除注解@TableLogin在属性上
 */

/*告诉mybatis-plus mapper的包
* 告诉mybatis-plus 的映射文件位置
* */
@MapperScan("com.hdax.gulimall.product.dao")
@SpringBootApplication
//开启服务发现客户端
@EnableDiscoveryClient
@EnableCaching
@EnableFeignClients
@EnableRedisHttpSession
public class GuliMallApplication {

    public static void main(String[] args) {
        SpringApplication.run(GuliMallApplication.class,args);
    }
}
